package com.roi.model;

public enum AccountType {

	CURRENT {
		@Override
		public Account createAccount(Customer c) {

			return new CurrentAccount(c);
		}
	},
	SAVING {
		@Override
		public Account createAccount(Customer c) {
			return new SavingAccount(c);
		}
	},
	LOAN {
		@Override
		public Account createAccount(Customer c) {
			return new LoanAccount(c);
		}
	},
	CREDIT {
		@Override
		public Account createAccount(Customer c) {
			return new CreditCard(c);
		}
	};

	public abstract Account createAccount(Customer c);
}
